\usepackage{tikz}

% comandos útiles para el TP 1
\newcommand{\gregory}{$$ \frac{\pi}{4} = \sum_{n=0}^{\infty}\frac{(-1)^n}{2n+1} $$}
\newcommand{\ramanujan}{$$ \frac{1}{\pi} = \frac{\sqrt{8}}{9801}\sum_{n=0}^{\infty}\dfrac{(4n)!(1103+26390n)}{n!^4 396^{4n}} $$}

\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
            \node[shape=circle,draw,inner sep=0.2pt] (char) {#1};}}

% errores
\newcommand{\err}[1]{\varepsilon_{#1}}
\newcommand{\errmult}{\err{\otimes}}
\newcommand{\errsuma}{\err{\oplus}}
\newcommand{\errresta}{\err{\ominus}}
\newcommand{\errdiv}{\err{\oslash}}
\newcommand{\errpot}{\err{\wedge}}
\newcommand{\errcast}{\err{cast}}
\newcommand{\cota}{2^{-t+1}}

% fórmulas de errores
\newcommand{\ferrsuma}[2]{\frac{{#1}\err{#1}+{#2}\err{#2}}{#1+#2}+\errsuma}
\newcommand{\ferrresta}[2]{\frac{{#1}\err{#1}-{#2}\err{#2}}{#1-#2}+\errsuma}
\newcommand{\ferrdiv}[3][]{\err{#2}^{#1}-\err{#3}^{#1}+\errdiv^{#1}}
\newcommand{\ferrmult}[3][]{\err{#2}^{#1}+\err{#3}^{#1}+\errmult^{#1}}
\newcommand{\ferrpot}[2][]{#2\err{#1}+\ln(#1)#2\err{#2}+\errpot}
